package com.testdocs.client.validation;

@SuppressWarnings("serial")
public class ConstraintViolationException extends Exception {
	private ValidationConstraint[] constraints;
	
	public ConstraintViolationException() {
		super();
		this.constraints = new ValidationConstraint[0];
	}

	public ConstraintViolationException(ValidationConstraint[] constraints) {
		super();
		this.constraints = constraints;
	}

	public ConstraintViolationException(ValidationConstraint[] constraints, String message) {
		super(message);
		this.constraints = constraints;
	}

	public ConstraintViolationException(ValidationConstraint[] constraints, String message, Throwable cause) {
		super(message, cause);
		this.constraints = constraints;
	}
	
	public ConstraintViolationException(ValidationConstraint[] constraints, Throwable cause) {
		super(cause);
		this.constraints = constraints;
	}
	
	public ValidationConstraint[] getValidationConstraints() {
		return constraints;
	}
}
